/*
 * @Date: 2023-06-20 18:15:44
 * @作者: 七星玉蘅
 * @邮箱: 1532250426@qq.com
 * @LastEditTime: 2023-06-28 20:10:19
 * @FilePath: \kaifamiao\client\vue.config.js
 */
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  // 配置反省代理
  devServer: {

    proxy: {
      "/api": {
        target: "http://localhost:3000",
        changeOrigin: true,
        ws: false,
      }
    }

  },
  chainWebpack: (config) => {
    config
      .plugin('html')
      .tap((args) => {
        args[0].title = '喵了个喵';
        return args;
      });
  }

})
